package cn.itcast.nems.order.dao.mapper;

import cn.itcast.nems.order.dao.dataobject.OrderLineDO;
import cn.itcast.nems.order.dao.entity.OrderLine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 销售订单-行 Mapper 接口
 * </p>
 *
 * @author liyong
 * @since 2023-08-31
 */
@Mapper
public interface OrderLineMapper extends BaseMapper<OrderLine> {
    /**
     * 根据客户ID和状态查询订单
     * @param orderLineDO 参数对象
     * @return 订单详情
     */
    List<OrderLineDO> findByIdAndState(@Param("orderLineDO") OrderLineDO orderLineDO) ;

    List<Map<String, Object>> listOrderLine(String orderId);
}
